<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<!--seo -->
    <title><{$config->site_title}></title>
    <meta name="keywords" content="<{$config->keywords}>">
    <meta name="description" content="<{$config->description}>">
    <!-- Bootstrap -->
    <link rel="stylesheet" href="/skin/front/default/lib/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="/skin/front/default/lib/idangerous.swiper.css"/>
    <link rel="stylesheet" href="/skin/front/default/css/common.css" />
    <link rel="stylesheet" type="text/css" href="/skin/front/default/css/min-screen.css"/>  
	<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script type="text/javascript" src="/skin/front/default/lib/jquery.min.js" ></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script type="text/javascript" src="/skin/front/default/lib/bootstrap.min.js" ></script>
    <script src="/skin/front/default/lib/idangerous.swiper.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="/skin/front/default/js/common.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="/skin/front/default/js/jquery.cookie.js" ></script>
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript">
    	$(function(){
    		//读取cookie
    		var menuname = $.cookie('menuname');
    		
    		if(menuname)
   			{
    			var len = $('#nav li').length ;
    			for(var i=0;i<len;i++)
    			{
    				if($('#nav li').eq(i).attr('menuname') == menuname)
   					{
    					$('#nav li').eq(i).addClass('on');
   					}
    			}
   			}
    		else
    		{
    			$('#nav li').eq(0).addClass('on');
    		}	
    		
    		//设置cookie
    		$('#nav li').click(function(){
    			var menuname = $(this).attr('menuname');
    			$.cookie('menuname', menuname, { expires: 7,path:'/'});
    		})
    		//点击logo
    		$('.nav_logo').click(function(){
    			$.cookie('menuname', 'home', { expires: 7,path:'/'});
    		})
    	})
    </script>
  </head>
  <body>
  	<!--导航部分-->
    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    	<div class="container">
    		<div class="navbar-header">  			
    			<button class="navbar-toggle btns" data-toggle="collapse" data-target="#nav" type="button">  				
    					<span class="sr-only">切换导航</span>
    					<span class="icon-bar"></span>
    					<span class="icon-bar"></span>
    					<span class="icon-bar"></span>
    			</button>
    			<a href="javascript:void(0);" class="need navbar-toggle head_need need_btn">需求提交</a>
    			<div class="navbar-brand nav_logo">   				
    				<a href="/"><img src="/skin/front/default//images/logo.png"/></a>
    			</div>
    		</div>
    		<div class="collapse navbar-collapse nav_box" id="nav">
   				<ul class="nav navbar-nav">
   					<li  menuname='home'><a href="/">首页 </a></li>
   					<{menus type='main'}>
    					<li menuname='<{$item.name}>'>
    					<{if $item.child }>
    						<a href="javascript:void(0);" class="visible-xs"><{$item.name}><span class="icon visible-xs-inline-block"></span></a>
    					<{/if}>
    					<a href="<{$item.link}>" <{if $item.new_window}>target="_blank" <{/if}>  <{if $item.child }> class="hidden-xs" <{/if}> ><{$item.name}></a>
    						<{if $item.child }>
    							<dl>
	    							<{foreach from=$item.child item=menu name=menus}>
		    							<dd><a href="<{$menu.link}>" <{if $menu.new_window}>target="_blank" <{/if}>><{$menu.name}></a></dd>
	    							<{/foreach}>
	    						</dl>
    						<{/if}>
    					</li>
                    <{/menus}> 					
   				</ul>
   				<a href="javascript:void(0);" class="need hidden-xs need_btn">需求提交</a>
    		</div>
    	</div>
    </nav>
    <!--导航部分-->